package com.lgy.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("test")
public class TestController {
    public static Logger logger = LoggerFactory.getLogger(TestController.class);
    @RequestMapping("free")
    public String test(HttpServletRequest request) {
        request.setAttribute("haha", "bbbbb");
        logger.debug("bbbbb");
        return "bbb";
    }

    @RequestMapping("jsp")
    public String jsp(HttpServletRequest request) {
    	System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaa");
        return "aaa";
    }
}